-module(flatmap).
-compile(export_all).

%not like map(), fun() in flatmap() have to return a list
test(List)->
  Ret = lists:flatmap(
        fun(M)-> [M,M+3] end,
                          List),
  Ret.

@doc
@spec
@throw
@hidde